#!/bin/bash

echo "关闭(关闭可能需要一段时间,最好等待>=30s)"
ansible hosts -i inventories/mongodb.local -m shell -a 'echo "db.shutdownServer()"|mongo --host {{bind_ip}} --port {{mongod_port}} '
